import http from "../../../request.js";

//查询地址列表
function findAllAddress() {
	return http({
		url:`/lejuClient/address/findAllAddress`
	})
}

// 更新收货地址
function updateAddressInfo(data) {
	return http({
		url:`/lejuClient/address/updateAddressInfo`,
		method:'post',
		data
	})
}

// 删除地址
function delAddressInfo(addressId) {
	return http({
		url:`/lejuClient/address/delAddressInfo/${addressId}`,
		method:'DELETE',
	})
}
// 设置默认地址
function makeAddressDefaul(addressId) {
	return http({
		url:`/lejuClient/address/makeAddressDefaul/${addressId}`,
		method:'post',
	})
}
export { findAllAddress , updateAddressInfo , delAddressInfo , makeAddressDefaul}